package com.dmw.dao;

import com.dmw.entity.DmLinkUser;
import com.dmw.entity.DmOrder;
import com.dmw.entity.DmOrderLinkUser;
import com.dmw.entity.DmUser;
import com.dmw.vo.orderVO.OrderInfoInVo;
import com.dmw.vo.orderVO.OrderInfoOutVo;
import com.dmw.vo.placeOrderVO.AddOrderVO;
import com.dmw.vo.placeOrderVO.OrderOfOrderNoVO;
import com.dmw.vo.placeOrderVO.OrderPaymentStateVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 订单表(DmOrder)表数据库访问层
 *
 * @author makejava
 * @since 2021-03-19 00:31:56
 */
public interface DmOrderDao {

    void addOrderLinkUser(DmOrderLinkUser orderLinkUser) throws Exception;

    Long queryOrderId(String orderNo) throws Exception;

    String queryLinkUserNameById(Long id) throws Exception;

    List<OrderOfOrderNoVO> queryOrderByOrderNo(Map<String, Object> map) throws Exception;

    List<OrderInfoOutVo> queryOrderList(Map<String, Object> map) throws Exception;

    int addOrder(DmOrder order) throws Exception;

    String queryItemName(Long valueOf);

    String queryUserWX(Long valueOf);

    Integer queryLevel(Map<String, Object> map);

    Double queryPrice(Map<String, Object> map);

    OrderPaymentStateVO queryOrderState(String orderNo) throws Exception;
}

